

#ifndef __CE_TIMER_H__
#define __CE_TIMER_H__

#include <cegfx/ceexport.h>

class CE_GFX_API ceTimer
{
private:
	long time;
	long elapsed;

	unsigned lastSec;
	unsigned frame;
	unsigned fps;

public:
	ceTimer (long time = 0);

	long GetTime () const;
	bool IsElapsed () const;

	void Tick ();
	unsigned GetFPS () const;
};

#endif /* ! __CE_TIMER_H__ */ 
